package com.pacy.pacybaseproject.activitys;

import android.os.Bundle;
import android.view.View;

import com.lxj.xpopup.XPopup;
import com.pacy.pacybaseproject.BR;
import com.pacy.pacybaseproject.R;
import com.pacy.pacybaseproject.base.BaseXActivity;
import com.pacy.pacybaseproject.databinding.ActivityAcDetailBinding;
import com.pacy.pacybaseproject.popups.ClockSuccessPopup;
import com.pacy.pacybaseproject.viewmodels.AcDetailViewModel;

/**
 * 活动详情
 */
public class AcDetailActivity extends BaseXActivity<ActivityAcDetailBinding, AcDetailViewModel> {
    @Override
    public int initContentView(Bundle savedInstanceState) {
        return R.layout.activity_ac_detail;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

    @Override
    public void initData() {
        super.initData();
        setToolbar(binding.baseToolBar);
        binding.clockInTv.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                new XPopup.Builder(AcDetailActivity.this).asCustom(new ClockSuccessPopup(AcDetailActivity.this)).show();
//                showDialog("正在核实您的位置...");
            }
        });
    }
}